home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / lpc / RCS / cmdtab.c,v < prev    next >
Encoding:
Text File  |  1989-01-23  |  2.7 KB  |  105 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     89.01.23.15.11.51;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.11.23.10.34.52;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @ renamed `select' and `abort' to not conflict with library routines.
  27. @
  28. text
  29. @/*
  30.  * Copyright (c) 1983 Regents of the University of California.
  31.  * All rights reserved.
  32.  *
  33.  * Redistribution and use in source and binary forms are permitted
  34.  * provided that this notice is preserved and that due credit is given
  35.  * to the University of California at Berkeley. The name of the University
  36.  * may not be used to endorse or promote products derived from this
  37.  * software without specific prior written permission. This software
  38.  * is provided ``as is'' without express or implied warranty.
  39.  */
  40.  
  41. #ifndef lint
  42. static char sccsid[] = "@@(#)cmdtab.c    5.2 (Berkeley) 5/5/88";
  43. #endif /* not lint */
  44.  
  45. /*
  46.  * lpc -- command tables
  47.  */
  48.  
  49. #include "lpc.h"
  50.  
  51. int    Abort(), clean(), enable(), disable(), down(), help();
  52. int    quit(), restart(), start(), status(), stop(), topq(), up();
  53.  
  54. char    aborthelp[] =    "terminate a spooling daemon immediately and disable printing";
  55. char    cleanhelp[] =    "remove cruft files from a queue";
  56. char    enablehelp[] =    "turn a spooling queue on";
  57. char    disablehelp[] =    "turn a spooling queue off";
  58. char    downhelp[] =    "do a 'stop' followed by 'disable' and put a message in status";
  59. char    helphelp[] =    "get help on commands";
  60. char    quithelp[] =    "exit lpc";
  61. char    restarthelp[] =    "kill (if possible) and restart a spooling daemon";
  62. char    starthelp[] =    "enable printing and start a spooling daemon";
  63. char    statushelp[] =    "show status of daemon and queue";
  64. char    stophelp[] =    "stop a spooling daemon after current job completes and disable printing";
  65. char    topqhelp[] =    "put job at top of printer queue";
  66. char    uphelp[] =    "enable everything and restart spooling daemon";
  67.  
  68. struct cmd cmdtab[] = {
  69.     { "abort",    aborthelp,    Abort,        1 },
  70.     { "clean",    cleanhelp,    clean,        1 },
  71.     { "enable",    enablehelp,    enable,        1 },
  72.     { "exit",    quithelp,    quit,        0 },
  73.     { "disable",    disablehelp,    disable,    1 },
  74.     { "down",    downhelp,    down,        1 },
  75.     { "help",    helphelp,    help,        0 },
  76.     { "quit",    quithelp,    quit,        0 },
  77.     { "restart",    restarthelp,    restart,    0 },
  78.     { "start",    starthelp,    start,        1 },
  79.     { "status",    statushelp,    status,        0 },
  80.     { "stop",    stophelp,    stop,        1 },
  81.     { "topq",    topqhelp,    topq,        1 },
  82.     { "up",        uphelp,        up,        1 },
  83.     { "?",        helphelp,    help,        0 },
  84. #ifndef sprite
  85.     { 0 },
  86. #endif
  87. };
  88.  
  89. int    NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
  90. @
  91.  
  92.  
  93. 1.1
  94. log
  95. @Initial revision
  96. @
  97. text
  98. @d23 1
  99. a23 1
  100. int    abort(), clean(), enable(), disable(), down(), help();
  101. d41 1
  102. a41 1
  103.     { "abort",    aborthelp,    abort,        1 },
  104. @
  105.